<?php
require_once 'config.php';

$text = $_GET["text"];
$name = $_GET["name"];
$qq=$_GET["qq"];
$time = date("Y-m-d H:i:s",time());

// 插入语句
$sql = "INSERT INTO `liuyan` (`id`, `name`,`text`,`qq`, `time`) VALUES (NULL, '$name', '$text', '$qq','$time');";
// 执行语句
$conn->query($sql);

//跳转到首页
header("Location:index.php");
?>